package indi.zhifa.core.common.web.config;

import indi.zhifa.core.common.util.DtoEntityUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Slf4j
@RequiredArgsConstructor
@Component
public class CommonInit implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        DtoEntityUtil.init();
    }
}